package com.zlt.controller;

import com.google.code.kaptcha.Producer;
import com.zlt.service.IUserService;
import com.zlt.service.imlp.UserServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Base64;
import java.util.HashMap;
import java.util.Map;

@RestController
@Api
public class HelloController {

    //http://ip:8088/hello
    @ApiOperation("hello SpringBoot的测试方法")
    @RequestMapping(value = "hello", method = RequestMethod.GET)
    public String hello(String name){
        return "hello"+name;
    }


    /**
     * 登录
     * url
     * 输入：用户名，密码，验证码
     * 输出：登陆失败，验证码错误，用户名不存在或密码错误
     */

}
